package genstream

import scaladuct.Extensible
import java.io.OutputStream

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 12.4.11
 * Time: 12:59
 * To change this template use File | Settings | File Templates.
 */

class DefaultFragmentedOutputStream(outputStream: OutputStream, defaultMetadata: Extensible = null)
  extends FragmentedOutputStream {

  override def close = outputStream.close

  override def flush = outputStream.flush

  override def write(b: Array[Byte], off: Int, len: Int) = outputStream.write(b, off, len)

  override def write(b: Array[Byte]) = outputStream.write(b)

  def write(b: Int) = outputStream.write(b)

  def onEndFragment() = null

  def onStartFragment(metadata: Extensible) = null
}